package com.chance.cc.crawler.prod.command.schedule.news.toutiao;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.toutiao.adhoc.TTBKSimpleCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.news.toutiao.adhoc.TTSimpleCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.schedule.CommonCrawlerJobSchedule;

/**
 * @author lt
 * @version 1.0
 * @date 2021-05-08 17:27:58
 * @email okprog@sina.com
 */
public class TTSimpleCrawlerJobSchedule extends CommonCrawlerJobSchedule {
    public static void main(String[] args) {
//        publicCrawlerScheduleJob(TTSimpleCrawlerSchedulerJob.crawlerScheduler());
//        delCrawlerJob(TTSimpleCrawlerSchedulerJob.crawlerScheduler());

        publicCrawlerScheduleJob(TTBKSimpleCrawlerSchedulerJob.crawlerScheduler());
    }

    public static void publicCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_10);
    }

    public static void delCrawlerJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_10);
    }
}
